﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using LeadThing.AbpZeroTemplate.SpecialPersons.Dtos;
using LeadThing.AbpZeroTemplate.Dto;

namespace LeadThing.AbpZeroTemplate.SpecialPersons
{
    /// <summary>
    /// 重点特殊人群服务接口
    /// </summary>
    public interface ISpecialPersonAppService : IApplicationService
    {
        #region 重点特殊人群管理

        /// <summary>
        /// 获取全部特殊人群信息加载到前台地图
        /// </summary>
        /// <returns></returns>
        PagedResultDto<SpecialPersonLoadPageDto> GetAllSpecialPersonLoadPage(GetSpecialPersonInput input);

        /// <summary>
        /// 获取所有文化程度
        /// </summary>
        /// <returns></returns>
        List<ComboboxItemDto> GetAllSpeCultureList();
        /// <summary>
        /// 获取所有民族
        /// </summary>
        /// <returns></returns>
        List<ComboboxItemDto> GetAllSpeNationList();
        /// <summary>
        /// 获取所有政治面貌
        /// </summary>
        /// <returns></returns>
        List<ComboboxItemDto> GetAllSpePoliticsList();
        /// <summary>
        /// 获取所有健康状况
        /// </summary>
        /// <returns></returns>
        List<ComboboxItemDto> GetAllSpeHealthList();
        /// <summary>
        /// 根据查询条件获取重点特殊人群分页列表
        /// </summary>
        Task<PagedResultDto<SpecialPersonListDto>> GetPagedSpecialPersonsAsync(GetSpecialPersonInput input);

        /// <summary>
        /// 通过Id获取重点特殊人群信息进行编辑或修改 
        /// </summary>
        Task<GetSpecialPersonForEditOutput> GetSpecialPersonForEditAsync(NullableIdDto<long> input);

        /// <summary>
        /// 通过指定id获取重点特殊人群ListDto信息
        /// </summary>
        Task<SpecialPersonListDto> GetSpecialPersonByIdAsync(EntityDto<long> input);



        /// <summary>
        /// 新增或更改重点特殊人群
        /// </summary>
        Task CreateOrUpdateSpecialPersonAsync(CreateOrUpdateSpecialPersonInput input);





        /// <summary>
        /// 新增重点特殊人群
        /// </summary>
        Task<SpecialPersonEditDto> CreateSpecialPersonAsync(SpecialPersonEditDto input);

        /// <summary>
        /// 更新重点特殊人群
        /// </summary>
        Task UpdateSpecialPersonAsync(SpecialPersonEditDto input);

        /// <summary>
        /// 删除重点特殊人群
        /// </summary>
        Task DeleteSpecialPersonAsync(EntityDto<long> input);

        /// <summary>
        /// 批量删除重点特殊人群
        /// </summary>
        Task BatchDeleteSpecialPersonAsync(List<long> input);

        #endregion

        #region Excel导出功能

        /// <summary>
        /// 获取重点特殊人群信息转换为Excel
        /// </summary>
        /// <returns></returns>
        Task<FileDto> GetSpecialPersonToExcel(EntityDto<long> input);

        #endregion


        #region APP接口

        /// <summary>
        /// 根据查询条件获取重点特殊人群分页列表
        /// </summary>
        Task<PagedResultDto<SpecialPersonListDto>> GetPagedSpecialPersonsAPPAsync(GetSpecialPersonAPPInput input);

        /// <summary>
        /// 通过Id获取重点特殊人群信息进行编辑或修改 
        /// </summary>
        Task<GetSpecialPersonForEditOutput> GetSpecialPersonForEditAPPAsync(EntityDto<string> input);

        Task<SpecialPersonEditDto> CreateSpecialPersonAppAsync(SpecialPersonAPPEditDto input);

        /// <summary>
        /// 编辑重点特殊人群
        /// </summary>
        Task UpdateSpecialPersonAppAsync(SpecialPersonAPPEditDto input);

        /// <summary>
        /// 删除重点特殊人群
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task DeleteSpecialPersonAppAsync(EntityDto<string> input);

        #endregion
    }
}
